package com.uyayo.notepad.service;

import com.uyayo.framework.common.exception.CategoryNotFoundException;
import com.uyayo.framework.common.exception.ModifiedRecordNotExistException;
import com.uyayo.framework.core.service.IBaseService;
import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.notepad.entity.Favorite;
import com.uyayo.notepad.model.FavoriteCondition;

import java.util.List;

public interface FavoriteService extends IBaseService<Favorite>{

	List<Favorite> selectFavorite(FavoriteCondition favoriteCondition);

	PageBean<Favorite> selectFavoriteByPaging(PageBean<Favorite> pageBean, FavoriteCondition favoriteCondition);

	int saveFavorite(Favorite favorite) throws CategoryNotFoundException;

	int updateFavorite(Favorite favorite) throws CategoryNotFoundException, ModifiedRecordNotExistException;

}
